//    Copyright (C) Kherty.  All rights reserved.
using OpenLS.Spreadsheet.Expressions;

namespace OpenLS.Spreadsheet.Formats.Biff.Tokens
{
    internal class PercentToken : EmptyFormulaToken
    {
        public override FormulaTokenId TokenId
        {
            get { return FormulaTokenId.Percent; }
        }
        internal override Expression GetExpression(FormulaEvaluationContext context)
        {
            FormulaToken t2 = context.PoppedArgument();
            Expression inner = t2.GetExpression(context);
            return new PercentExpression(inner);
        }
    }
}